import tushare as ts
pro = ts.pro_api()

def get_index(index, strt, ed):
    index_code = index + '.NH'
    index_data = pro.index_daily(ts_code=index_code, start_date=strt, end_date=ed)
    index_data.drop(index_data.columns[[6, 7, 8]], axis=1, inplace=True)
    return index_data